import {Button, Card} from "antd"

const Children = ({changeColor, btnType}) => {
    return (
        <div className="mt-20px">
            <Card title="我是子组件">
                <Button type={btnType} onClick={changeColor}>点我更改父组件的文字颜色</Button>
            </Card>
        </div>
    )
}

export default Children
